package 综合练习;

public class 不死神兔 {
    public static void main(String[] args) {
        int []arr=new int[12];
        arr[0]=1;
        arr[1]=1;
        /*for (int i = 0; i < arr.length-2; i++) {
           arr[i+2]= arr[i]+arr[i+1];
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }*/
        System.out.println(getSum(12));

    }
public static int getSum(int month){
        if(month==1||month==2){
            return 1;
        }
        return getSum(month-1)+getSum(month-2);
}
}
